﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CARSpoc.aspx.cs" Inherits="CARSpoc"
    MasterPageFile="~/Default.master" EnableViewState="false" %>

<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
    
<asp:Content ContentPlaceHolderID="head" ID="hd" runat="server" EnableViewState="false">

    <script src="CARSpoc.js" type="text/javascript"></script>
    <script src="js/LOV.js" type="text/javascript"></script> 
    <script src="js/Datetimepicker.js" type="text/javascript"></script>
    
    <script src="js/FileUpload.js" type="text/javascript"></script>
    
 <%--
    
    <!-- TinyMCE -->

    <script src="js/tiny_mce.js" type="text/javascript"></script>

    <!-- /TinyMCE -->--%>
    <link href="CARSpoc.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ContentPlaceHolderID="leftMenu" ID="leftnav" runat="server" EnableViewState="false">
<% Response.Write(GenerateSideMenu()); %>
</asp:Content>
<asp:Content ContentPlaceHolderID="content" ID="ctnCD" runat="server"
    EnableViewState="false">
    <div id="pnlMRTGTitle"></div>
    <div id="pnlMRTG" runat="server"></div> 
    <fieldset class="m_fs_border" id="fs_SPOC">
        <legend><a class="lnk" href="javascript:toggle('SPOC');">Monitoring Laporan Produksi</a>
        </legend>
        <dl class="m_fs">
            <div id="div_SPOC">
            <%Response.Write(CARManager.BuildEditor_SPOC());
            %>
            <br />
            <dxwgv:ASPxGridView ID="dgSpoc" KeyFieldName="EMPLOYEE_NO" ClientInstanceName="dgSpoc_c"
                runat="server" AutoGenerateColumns="false" Width="100%" Font-Size="Small"
                 OnCustomCallback="dgSpoc_CustomCallback" >
                <Styles Header-HorizontalAlign="Center" AlternatingRow-Enabled="True" Cell-Wrap="true" Cell-Font-Size="Smaller" Header-Wrap="true"
                    Header-Font-Size="Smaller" Header-Font-Bold="true">
                    <Header Wrap="True" Font-Size="Smaller" Font-Bold="True">
                    </Header>
                    <AlternatingRow Enabled="True">
                    </AlternatingRow>
                    <Cell Wrap="true" Font-Size="Smaller">
                    </Cell>
                </Styles>
                <SettingsPager PageSize="10">
                </SettingsPager>
                <Settings ShowFilterBar="Visible" ShowFilterRow="true" ShowFilterRowMenu="true"/>
                <SettingsBehavior AllowSort="true"/>
                <ClientSideEvents EndCallback="function(s, e) { dgSpoc_c_CallbackComplete(e); }" />
                <Columns>
                    <dxwgv:GridViewDataTextColumn FieldName="CAR_EMPLOYEE_NO" Name="CAR_EMPLOYEE_NO" Caption="ID CAR" Width="5%">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="CAR_NAME" Name="CAR_NAME" Caption="NAMA CAR" Width="15%"
                     GroupIndex="0" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="CAR_NAME" Name="CAR_NAME" Caption="NAMA CAR" Width="15%">
                        <DataItemTemplate>
                        <%# GridColumnManager.GetCARLinkColumn(Eval("CAR_EMPLOYEE_NO").ToString(), Eval("CAR_NAME").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="COMPANY_NAME" Name="COMPANY_NAME" Caption="COMPANY" Width="40%" >
                        <DataItemTemplate>
                        <%# GridColumnManager.GetCompanyLinkColumn(Eval("COMPANY_ID").ToString(), Eval("COMPANY_NAME").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="SALES_NAME" Name="SALES_NAME" Caption="NAMA SALES" Width="15%">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="NETWORK_COUNT" Name="NETWORK_COUNT" Caption="NETWORK COUNT" Width="15%">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="TOTAL_REV" Name="TOTAL_REV" Caption="TOTAL REVENUE" Width="40%" >
                    <PropertiesTextEdit DisplayFormatString="n" />
                    </dxwgv:GridViewDataTextColumn>
                </Columns>
                <Settings ShowGroupPanel="True" ShowFooter="True" ShowGroupFooter="VisibleAlways" />
                <TotalSummary>
                    <dxwgv:ASPxSummaryItem FieldName="COMPANY_NAME" SummaryType="Count" />
                    <dxwgv:ASPxSummaryItem FieldName="TOTAL_REV" SummaryType="Sum" DisplayFormat="n" />
                </TotalSummary>
                <GroupSummary>
                    <dxwgv:ASPxSummaryItem FieldName="COMPANY_NAME" ShowInGroupFooterColumn="COMPANY_NAME" SummaryType="Count" />
                    <dxwgv:ASPxSummaryItem FieldName="TOTAL_REV" ShowInGroupFooterColumn="TOTAL_REV" SummaryType="Sum" DisplayFormat="n" />
                </GroupSummary>
            </dxwgv:ASPxGridView>
            </div>
        </dl>
    </fieldset>
</asp:Content>
